import 'package:file_transfer/application.dart';
import 'package:file_transfer/page/home_page.dart';
import 'package:file_transfer/page/login_page.dart';
import 'package:file_transfer/theme/colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:file_transfer/step_provider.dart';

void main() {
  // 设置为透明
  SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(statusBarColor: Colors.transparent));

  runApp(MultiProvider(
      providers: provides,
      child: const MyApp()
  ));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: "文件传输",
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: ThemeColors.blue),
        useMaterial3: true,
      ),
      home: const Application(child: HomePage()),
    );
  }
}
